package charstream;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class Demo8 {
    public static void main(String[] args) throws IOException {
        //字符缓冲输入流 readLine 读一整行
        //之前，读不到数据，返回-1； readLine读不到，返回null
        BufferedReader br = new BufferedReader(new FileReader("Day13\\a.txt"));
        String s1 = br.readLine();
        String s2 = br.readLine();
        String s3= br.readLine();
        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        br.close();
    }
}
